package safeCommitter.test.report;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class SCReport {

	protected Boolean testsPassed = Boolean.TRUE;
	protected Integer failCount = 0;
	protected Integer skippCount = 0;
	protected Integer successCount = 0;

	protected List<String> testDescriptions = new ArrayList<String>();
	protected static final String LINE_SEPARATOR = "&";
	protected static final String SEPARATOR = "~";

	public boolean getTestsPassed() {
		return testsPassed;
	}

	public Integer getTestCount() {
		return failCount + skippCount + successCount;
	}

	public void setTestsPassed(final Boolean testsPassed) {
		this.testsPassed = testsPassed && testsPassed;
	}

	public void addDescription(final String testDescription) {
		testDescriptions.add(testDescription);
	}

	public List<String> getTestDescriptions() {
		Collections.sort(testDescriptions);
		return testDescriptions;
	}

	public Integer getFailCount() {
		return failCount;
	}

	public Integer getSkippCount() {
		return skippCount;
	}

	public Integer getSuccessCount() {
		return successCount;
	}

	public void setTestCount(final Integer testCount) {

	}

}
